home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / lzexpand.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.7 KB  |  131 lines

  1. /*
  2. ** lzdos.h - Public interface to LZEXP?.LIB.
  3. */
  4.  
  5. #ifndef _LZEXPAND_
  6. #define _LZEXPAND_
  7. #pragma option push -b
  8.  
  9.  
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13.  
  14. /*
  15. ** Error Return Codes
  16. */
  17.  
  18. #define LZERROR_BADINHANDLE   (-1)  /* invalid input handle */
  19. #define LZERROR_BADOUTHANDLE  (-2)  /* invalid output handle */
  20. #define LZERROR_READ          (-3)  /* corrupt compressed file format */
  21. #define LZERROR_WRITE         (-4)  /* out of space for output file */
  22. #define LZERROR_GLOBALLOC     (-5)  /* insufficient memory for LZFile struct */
  23. #define LZERROR_GLOBLOCK      (-6)  /* bad global handle */
  24. #define LZERROR_BADVALUE      (-7)  /* input parameter out of acceptable range*/
  25. #define LZERROR_UNKNOWNALG    (-8)  /* compression algorithm not recognized */
  26.  
  27.  
  28. /*
  29. ** Prototypes
  30. */
  31.  
  32. INT
  33. APIENTRY
  34. LZStart(
  35.     VOID
  36.     );
  37.  
  38. VOID
  39. APIENTRY
  40. LZDone(
  41.     VOID
  42.     );
  43.  
  44. LONG
  45. APIENTRY
  46. CopyLZFile(
  47.     INT,
  48.     INT
  49.     );
  50.  
  51. LONG
  52. APIENTRY
  53. LZCopy(
  54.     INT,
  55.     INT
  56.     );
  57.  
  58. INT
  59. APIENTRY
  60. LZInit(
  61.     INT
  62.     );
  63.  
  64. INT
  65. APIENTRY
  66. GetExpandedNameA(
  67.     LPSTR,
  68.     LPSTR
  69.     );
  70. INT
  71. APIENTRY
  72. GetExpandedNameW(
  73.     LPWSTR,
  74.     LPWSTR
  75.     );
  76. #ifdef UNICODE
  77. #define GetExpandedName  GetExpandedNameW
  78. #else
  79. #define GetExpandedName  GetExpandedNameA
  80. #endif // !UNICODE
  81.  
  82. INT
  83. APIENTRY
  84. LZOpenFileA(
  85.     LPSTR,
  86.     LPOFSTRUCT,
  87.     WORD
  88.     );
  89. INT
  90. APIENTRY
  91. LZOpenFileW(
  92.     LPWSTR,
  93.     LPOFSTRUCT,
  94.     WORD
  95.     );
  96. #ifdef UNICODE
  97. #define LZOpenFile  LZOpenFileW
  98. #else
  99. #define LZOpenFile  LZOpenFileA
  100. #endif // !UNICODE
  101.  
  102. LONG
  103. APIENTRY
  104. LZSeek(
  105.     INT,
  106.     LONG,
  107.     INT
  108.     );
  109.  
  110. INT
  111. APIENTRY
  112. LZRead(
  113.     INT,
  114.     LPSTR,
  115.     INT
  116.     );
  117.  
  118. VOID
  119. APIENTRY
  120. LZClose(
  121.     INT
  122.     );
  123.  
  124. #ifdef __cplusplus
  125. }
  126. #endif
  127.  
  128.  
  129. #pragma option pop
  130. #endif // _LZEXPAND_
  131.